
CC = gcc
CFLAGS = -g 



all: client server 	

client: client.o lib.o
	$(CC) $(CFLAGS) client.o lib.o -o client

server: server.o lib.o
	$(CC) $(CFLAGS) server.o lib.o -o server

lib.o: lib.c
	$(CC) $(CFLAGS) -c lib.c
	@echo "compile lib"	

client.o: client.c
	$(CC) $(CFLAGS) -c client.c

server.o: server.c
	$(CC) $(CFLAGS) -c server.c


clean:
	rm -rf *.o lib client server
